package chai.ning.train_11;

public class AnimalTest {
	
	public static void main(String[] args) {
		Animal a = null ;
		a = new Phoenix( "凤凰" );
		System.out.println( a.toString() );
		a.eat("鹰");

		a = new Eagle( "鹰" );
		System.out.println( a.toString() );
		a.eat( "熊" );

		a = new Bear( "熊" );
		System.out.println( a.toString() );
		a.eat( "狮子" );

		a = new Lion( "狮子" );
		System.out.println( a.toString() );
		a.eat( "熊" );
	}

}
